package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class HotelIndent extends BaseDomain{

    public static final Integer STATE_BACK = 0; //待支付
    public static final Integer STATE_SEND = 1; //已支付

    private Long hotelId;//酒店Id

    private String hotelName;//酒店名称

    private String coverUrl;//酒店图标

    private Integer price;//酒店价格

    private Long userId;//用户Id

    private String userName;//用户名

    private Integer state=STATE_BACK;//状态

    private String orderNumber;//订单号

    public String getStateName(){
        String msg = "";
        if(state == STATE_BACK){
            msg = "待支付";
        }else if(state == STATE_SEND){
            msg = "已支付";
        }
        return msg;
    }

}